class Shape {
    public void draw(){
        System.out.println("画图！");
    }
}
class DrawFlower extends Shape{
    @Override
    public void draw() {
        System.out.println("花！");
    }
}
class DrawRect extends Shape{
    @Override
    public void draw() {
        System.out.println("矩形！");
    }
}
public class Test {
    public static void drawMap(Shape shape){
        shape.draw();
    }
    public static void main(String[] args) {
        drawMap(new DrawFlower());
        drawMap(new DrawRect());
    }
}
